﻿<UserControl
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
            xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
            xmlns:my="clr-namespace:UniPie"
            xmlns:ValueConverters="clr-namespace:ValueConverters"
            x:Name="SliceControl"
            x:Class="UniPie.PieSlice"
            DataContext="{Binding RelativeSource={RelativeSource Self}}"
            mc:Ignorable="d" SnapsToDevicePixels="True" Loaded="Slice_Loaded" MouseEnter="Slice_MouseEnter" MouseLeave="Slice_MouseLeave" Width="120" Height="71.479" HorizontalAlignment="Center" MouseUp="Slice_MouseUp">
    <UserControl.Resources>
    	<ValueConverters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
		<ValueConverters:BooleanToDoubleConverter x:Key="BooleanToDoubleConverter"/>
    </UserControl.Resources>
    <Grid x:Name="grid" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center">
    	<Grid.RenderTransform>
    		<TransformGroup>
    			<ScaleTransform/>
    			<SkewTransform/>
    			<RotateTransform/>
    			<TranslateTransform/>
    		</TransformGroup>
    	</Grid.RenderTransform>
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="InteractionStateGroup">
                <VisualStateGroup.Transitions>
                    <VisualTransition GeneratedDuration="0:0:0.1">
                        <ei:ExtendedVisualStateManager.TransitionEffect>
                            <ee:FadeTransitionEffect/>
                        </ei:ExtendedVisualStateManager.TransitionEffect>
                    </VisualTransition>
                </VisualStateGroup.Transitions>
                <VisualState x:Name="Default"/>
                <VisualState x:Name="Selected">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Path_Selection">
                            <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Path_Selection">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="Path_Base">
                        	<EasingColorKeyFrame KeyTime="0" Value="Red"/>
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="Path_Base">
                        	<EasingColorKeyFrame KeyTime="0" Value="#FFC80000"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Unselected">
                    <Storyboard>
                        <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="Path_Base">
                            <EasingColorKeyFrame KeyTime="0" Value="#FF780000"/>
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="Path_Base">
                            <EasingColorKeyFrame KeyTime="0" Value="#FFDC0000"/>
                        </ColorAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Disabled">
                    <Storyboard>
                        <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="Path_Base">
                            <EasingColorKeyFrame KeyTime="0" Value="#66F9F9F9"/>
                        </ColorAnimationUsingKeyFrames>
                        <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="Path_Base">
                            <EasingColorKeyFrame KeyTime="0" Value="#00646464"/>
                        </ColorAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="TextBlock_TextC">
                            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="TextBlock_TextR">
                            <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
            <VisualStateGroup x:Name="ShapeStateGroup">
            	<VisualState x:Name="Outer8">
            		<Storyboard>
            						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data)" Storyboard.TargetName="Path_Base">
                                        <DiscreteObjectKeyFrame KeyTime="0">
                                            <DiscreteObjectKeyFrame.Value>
                                            	<Geometry>
        											M0.35449806,11.560817 C36.406497,-3.3701049 77.157497,-3.3891048 113.2115,11.552817 L88.541496,71.124505 C68.230497,62.686549 45.286497,62.695549 25.012498,71.095505 L0.35449806,11.560817 z
    											</Geometry>
											</DiscreteObjectKeyFrame.Value>
                                        </DiscreteObjectKeyFrame>
                                    </ObjectAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="SliceControl">
            							<EasingDoubleKeyFrame KeyTime="0" Value="72"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Path_Selection">
            							<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
            						</DoubleAnimationUsingKeyFrames>
            						<ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="Path_Selection">
            							<EasingThicknessKeyFrame KeyTime="0" Value="0,0,1.122,0"/>
            						</ThicknessAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
            	<VisualState x:Name="Center">
            		<Storyboard>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data)" Storyboard.TargetName="Path_Base">
                                        <DiscreteObjectKeyFrame KeyTime="0">
                                            <DiscreteObjectKeyFrame.Value>
                                            	<Geometry>
        											M0.35450656,16.654499 C0.35450656,7.6525002 7.6525034,0.35450156 16.6545,0.35450156 C25.655496,0.35450156 32.953493,7.6525002 32.953493,16.654499 C32.953493,25.657497 25.655496,32.954496 16.6545,32.954496 C7.6525034,32.954496 0.35450656,25.657497 0.35450656,16.654499 z
    											</Geometry>
											</DiscreteObjectKeyFrame.Value>
                                        </DiscreteObjectKeyFrame>
                                    </ObjectAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Path_Base">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0.195"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="TextBlock_TextC">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="TextBlock_TextC">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="TextBlock_TextR">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="TextBlock_TextR">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="SliceControl">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="34"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="SliceControl">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="40"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.GradientOrigin)" Storyboard.TargetName="Path_Base">
                                    	<EasingPointKeyFrame KeyTime="0" Value="0.5,0.5"/>
                                    </PointAnimationUsingKeyFrames>
                                    <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.Center)" Storyboard.TargetName="Path_Base">
                                    	<EasingPointKeyFrame KeyTime="0" Value="0.5,0.5"/>
                                    </PointAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.RadiusY)" Storyboard.TargetName="Path_Base">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.RadiusX)" Storyboard.TargetName="Path_Base">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.MappingMode)" Storyboard.TargetName="Path_Base">
                                    	<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static BrushMappingMode.RelativeToBoundingBox}"/>
                                    </ObjectAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)" Storyboard.TargetName="Path_Base">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="Path_Base">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0.954"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Path_Selection">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="0.23"/>
                                    </DoubleAnimationUsingKeyFrames>
                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="Path_Selection">
                                    	<EasingDoubleKeyFrame KeyTime="0" Value="-0.084"/>
                                    </DoubleAnimationUsingKeyFrames>
                                </Storyboard>

            	</VisualState>
            	<VisualState x:Name="Full4">
            		<Storyboard>
            						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data)" Storyboard.TargetName="Path_Base">
                                        <DiscreteObjectKeyFrame KeyTime="0">
                                            <DiscreteObjectKeyFrame.Value>
                                            	<Geometry>
        											M0.35450001,43.487419 C57.888502,-14.074628 151.34951,-13.970628 208.78051,43.484419 L116.1735,136.09849 C109.7355,129.68949 99.371504,129.71649 92.961504,136.09849 L0.35450001,43.487419 z
    											</Geometry>
											</DiscreteObjectKeyFrame.Value>
                                        </DiscreteObjectKeyFrame>
                                    </ObjectAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="SliceControl">
            							<EasingDoubleKeyFrame KeyTime="0" Value="210"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="SliceControl">
            							<EasingDoubleKeyFrame KeyTime="0" Value="137"/>
            						</DoubleAnimationUsingKeyFrames>
            						<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.Center)" Storyboard.TargetName="Path_Base">
            							<EasingPointKeyFrame KeyTime="0" Value="105,142"/>
            						</PointAnimationUsingKeyFrames>
            						<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.GradientOrigin)" Storyboard.TargetName="Path_Base">
            							<EasingPointKeyFrame KeyTime="0" Value="105,142"/>
            						</PointAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.RadiusX)" Storyboard.TargetName="Path_Base">
            							<EasingDoubleKeyFrame KeyTime="0" Value="144"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.RadiusY)" Storyboard.TargetName="Path_Base">
            							<EasingDoubleKeyFrame KeyTime="0" Value="144"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="Path_Base">
            							<EasingDoubleKeyFrame KeyTime="0" Value="0.025"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="TextBlock_TextC">
            							<EasingDoubleKeyFrame KeyTime="0" Value="-23.331"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(my:BendEffect.Bend)" Storyboard.TargetName="Border_TextC">
            							<EasingDoubleKeyFrame KeyTime="0" Value="0.4"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(my:BendEffect.Taper)" Storyboard.TargetName="Border_TextC">
            							<EasingDoubleKeyFrame KeyTime="0" Value="0.6"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="TextBlock_TextR">
            							<EasingDoubleKeyFrame KeyTime="0" Value="118"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Path_Selection">
            							<EasingDoubleKeyFrame KeyTime="0" Value="-2.125"/>
            						</DoubleAnimationUsingKeyFrames>
					</Storyboard>
            	</VisualState>
            	<VisualState x:Name="Inner8">
            		<Storyboard>
            						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Path.Data)" Storyboard.TargetName="Path_Base">
                                        <DiscreteObjectKeyFrame KeyTime="0">
                                            <DiscreteObjectKeyFrame.Value>
                                            	<Geometry>
        											M0.35450258,6.6542899 L25.843503,68.194505 C29.857503,66.5365 34.392503,66.5345 38.412503,68.191505 L63.882503,6.68329 C43.617503,-1.7357395 20.672503,-1.7647396 0.35450258,6.6542899 z
    											</Geometry>
											</DiscreteObjectKeyFrame.Value>
                                        </DiscreteObjectKeyFrame>
                                    </ObjectAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="SliceControl">
            							<EasingDoubleKeyFrame KeyTime="0" Value="68"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="SliceControl">
            							<EasingDoubleKeyFrame KeyTime="0" Value="72"/>
            						</DoubleAnimationUsingKeyFrames>
            						<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.Center)" Storyboard.TargetName="Path_Base">
            							<EasingPointKeyFrame KeyTime="0" Value="34,110"/>
            						</PointAnimationUsingKeyFrames>
            						<PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.GradientOrigin)" Storyboard.TargetName="Path_Base">
            							<EasingPointKeyFrame KeyTime="0" Value="34,110"/>
            						</PointAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.RadiusX)" Storyboard.TargetName="Path_Base">
            							<EasingDoubleKeyFrame KeyTime="0" Value="140"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(RadialGradientBrush.RadiusY)" Storyboard.TargetName="Path_Base">
            							<EasingDoubleKeyFrame KeyTime="0" Value="140"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="Path_Base">
            							<EasingDoubleKeyFrame KeyTime="0" Value="0.383"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="TextBlock_TextC">
            							<EasingDoubleKeyFrame KeyTime="0" Value="-5.331"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(my:BendEffect.Bend)" Storyboard.TargetName="Border_TextC">
            							<EasingDoubleKeyFrame KeyTime="0" Value="0.3"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(my:BendEffect.Taper)" Storyboard.TargetName="Border_TextC">
            							<EasingDoubleKeyFrame KeyTime="0" Value="0.6"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.FontSize)" Storyboard.TargetName="TextBlock_TextC">
            							<EasingDoubleKeyFrame KeyTime="0" Value="16"/>
            						</DoubleAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.FontSize)" Storyboard.TargetName="TextBlock_TextR">
            							<EasingDoubleKeyFrame KeyTime="0" Value="12"/>
            						</DoubleAnimationUsingKeyFrames>
            						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)" Storyboard.TargetName="TextBlock_TextR">
            							<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static HorizontalAlignment.Center}"/>
            						</ObjectAnimationUsingKeyFrames>
            						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)" Storyboard.TargetName="TextBlock_TextR">
            							<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static VerticalAlignment.Center}"/>
            						</ObjectAnimationUsingKeyFrames>
            						<ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="TextBlock_TextR">
            							<EasingThicknessKeyFrame KeyTime="0" Value="0,-18,0,0"/>
            						</ThicknessAnimationUsingKeyFrames>
            						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextBlock.TextWrapping)" Storyboard.TargetName="TextBlock_TextR">
            							<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static TextWrapping.WrapWithOverflow}"/>
            						</ObjectAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="TextBlock_TextR">
            							<EasingDoubleKeyFrame KeyTime="0" Value="56"/>
            						</DoubleAnimationUsingKeyFrames>
            						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(TextBlock.TextTrimming)" Storyboard.TargetName="TextBlock_TextR">
            							<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static TextTrimming.CharacterEllipsis}"/>
            						</ObjectAnimationUsingKeyFrames>
            						<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Path_Selection">
            							<EasingDoubleKeyFrame KeyTime="0" Value="-1.328"/>
            						</DoubleAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
            </VisualStateGroup>
            <VisualStateGroup x:Name="EditingStateGroup">
            	<VisualState x:Name="Editing">
            		<Storyboard>
            			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Path_EditingMarker">
            				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
            			</ObjectAnimationUsingKeyFrames>
            		</Storyboard>
            	</VisualState>
            	<VisualState x:Name="NotEditing"/>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <VisualStateManager.CustomVisualStateManager>
            <ei:ExtendedVisualStateManager/>
        </VisualStateManager.CustomVisualStateManager>
        <Path x:Name="Path_Base" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="Black" StrokeMiterLimit="4" StrokeLineJoin="Miter" Margin="0,0,0,-9.021" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Top" Data="M0.35449806,11.560817 C36.406497,-3.3701049 77.157497,-3.3891048 113.2115,11.552817 L88.541496,71.124505 C68.230497,62.686549 45.286497,62.695549 25.012498,71.095505 L0.35449806,11.560817 z">
            <Path.Effect>
                <my:ColorizeEffect InputHue="{Binding Definition.Hue, ElementName=SliceControl}" InputSaturation="{Binding Definition.Saturation, ElementName=SliceControl}"/>
            </Path.Effect>
            <Path.Fill>
                <RadialGradientBrush RadiusY="142" RadiusX="142" GradientOrigin="56.782,142" Center="56.782,142" MappingMode="Absolute">
                    <GradientStop Color="#FF8C0000" Offset="0.5"/>
                    <GradientStop Color="#FFDC0000" Offset="1"/>
                </RadialGradientBrush>
            </Path.Fill>
        </Path>
        <Path x:Name="Path_Selection" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="White" StrokeMiterLimit="4" StrokeLineJoin="Miter" Margin="3.042,0.062,1.122,0" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top" Data="{Binding Data, ElementName=Path_Base}" Clip="{Binding Data, ElementName=Path_Base}" StrokeThickness="10" IsHitTestVisible="False" Visibility="Hidden">
        	<Path.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Path.RenderTransform>
            <Path.Effect>
                <BlurEffect Radius="10"/>
            </Path.Effect>
        </Path>
        <Path x:Name="Path_EditingMarker" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="#FDFFFFFF" StrokeMiterLimit="4" Margin="1.25,0,-1.25,0" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top" Data="{Binding Data, ElementName=Path_Base}" Clip="{Binding Data, ElementName=Path_Base}" StrokeThickness="5" IsHitTestVisible="False" StrokeDashArray="1 1" Visibility="Hidden">
        	<Path.Effect>
        		<DropShadowEffect ShadowDepth="0" BlurRadius="8"/>
        	</Path.Effect>
        	<Path.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Path.RenderTransform>
        </Path>
        <Border x:Name="Border_TextC" Background="#00000000" Margin="4,0,4,24" IsHitTestVisible="False" >
            <Border.Effect>
                <my:BendEffect Bend="0.3" Taper="0.4"/>
            </Border.Effect>
            <TextBlock x:Name="TextBlock_TextC" FontSize="20" TextAlignment="Center" TextTrimming="CharacterEllipsis" ScrollViewer.VerticalScrollBarVisibility="Disabled" Padding="0" HorizontalAlignment="Center" LineStackingStrategy="BlockLineHeight" LineHeight="17" RenderTransformOrigin="0.5,0.5" TextOptions.TextFormattingMode="Display" Text="{Binding Definition.Text, FallbackValue=Abcde 123412}" Visibility="{Binding TextPlacementRadial, ConverterParameter=reversed, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=SliceControl}" Margin="0" TextWrapping="WrapWithOverflow" VerticalAlignment="Center" Foreground="#FF000000" IsHitTestVisible="False">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform>
            	<TextBlock.LayoutTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="{Binding TextFlipped, ConverterParameter=true(-1.1) false(1.1), Converter={StaticResource BooleanToDoubleConverter}, ElementName=SliceControl, FallbackValue=1.1}" ScaleY="{Binding TextFlipped, ConverterParameter=true(-1) false(1), Converter={StaticResource BooleanToDoubleConverter}, ElementName=SliceControl, FallbackValue=1}"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.LayoutTransform>
            </TextBlock>
        </Border>
        <TextBlock x:Name="TextBlock_TextR" TextWrapping="WrapWithOverflow" FontSize="18" TextAlignment="Center" TextTrimming="CharacterEllipsis" ScrollViewer.VerticalScrollBarVisibility="Disabled" Padding="0" TextOptions.TextFormattingMode="Display" RenderTransformOrigin="0.5,0.5" Margin="26,5.929,26,11.158" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Definition.Text, FallbackValue=Slice Number}" Visibility="{Binding TextPlacementRadial, ConverterParameter='', Converter={StaticResource BooleanToVisibilityConverter}, ElementName=SliceControl}" Foreground="#FF000000" IsHitTestVisible="False" Width="59">
        	<TextBlock.LayoutTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="{Binding TextFlipped, ConverterParameter=true(-1) false(1), Converter={StaticResource BooleanToDoubleConverter}, ElementName=SliceControl}" ScaleY="{Binding TextFlipped, ConverterParameter=true(-1) false(1), Converter={StaticResource BooleanToDoubleConverter}, ElementName=SliceControl}"/>
        			<SkewTransform/>
        			<RotateTransform/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</TextBlock.LayoutTransform>
        	<TextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleY="1" ScaleX="1"/>
        			<SkewTransform AngleY="0" AngleX="0"/>
        			<RotateTransform Angle="90"/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</TextBlock.RenderTransform>
        </TextBlock>
        <Path x:Name="_4x2i" Fill="White" Height="72.085" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="0.709" StrokeMiterLimit="4" StrokeLineJoin="Miter" Data="M0.35450233,24.665256 C32.719501,-7.7249136 85.258499,-7.7809139 117.6805,24.688256 L70.6355,71.730503 C64.2115,65.33447 53.841501,65.33747 47.422501,71.730503 L0.35450233,24.665256 z" Margin="-2.234,0,-2.236,0" Opacity="0.2" VerticalAlignment="Top" IsHitTestVisible="False" d:IsHidden="True" Visibility="Hidden"/>
        <Path x:Name="_4x2o" Fill="White" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="0.709" StrokeMiterLimit="4" StrokeLineJoin="Miter" Data="M0.35450001,43.509374 C57.8865,-14.052787 151.2905,-14.007787 208.7835,43.508374 L163.2205,89.080501 C130.8655,56.67741 78.3255,56.60141 45.8955,89.056501 L0.35450001,43.509374 z" Margin="-47.785,0,-47.788,0" Opacity="0.2" IsHitTestVisible="False" d:IsHidden="True" Visibility="Hidden"/>
        <Path x:Name="_8" Fill="White" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="0.709" StrokeMiterLimit="4" StrokeLineJoin="Miter" Data="M0.3545,11.554846 C36.389498,-3.3681122 77.115496,-3.3871121 113.15049,11.546846 L63.039497,132.5535 C59.021497,130.89751 54.485497,130.90051 50.478498,132.5565 L0.3545,11.554846 z" Margin="0.031,0,40.127,0" Opacity="0.2" IsHitTestVisible="False" d:IsHidden="True" Visibility="Hidden"/>
        <Path x:Name="_8x2i" Fill="White" Height="68.549" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="0.709" StrokeMiterLimit="4" StrokeLineJoin="Miter" Data="M0.35450258,6.6542899 L25.843503,68.194505 C29.857503,66.5365 34.392503,66.5345 38.412503,68.191505 L63.882503,6.68329 C43.617503,-1.7357395 20.672503,-1.7647396 0.35450258,6.6542899 z" Margin="24.664,0" Opacity="0.2" VerticalAlignment="Top" IsHitTestVisible="False" d:IsHidden="True" Visibility="Hidden"/>
        <Path x:Name="_8x2o" Fill="White" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="0.709" StrokeMiterLimit="4" StrokeLineJoin="Miter" Data="M0.35449806,11.560817 C36.406497,-3.3701049 77.157497,-3.3891048 113.2115,11.552817 L88.541496,71.124505 C68.230497,62.686549 45.286497,62.695549 25.012498,71.095505 L0.35449806,11.560817 z" Margin="0" Opacity="0.2" VerticalAlignment="Top" IsHitTestVisible="False" d:IsHidden="True" Visibility="Hidden"/>
        <Path x:Name="_8x3" Fill="White" Height="33.452" StrokeStartLineCap="Flat" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="0.709" StrokeMiterLimit="4" StrokeLineJoin="Miter" Data="M0.3545,0.35450003 L98.602499,0.35450003 L98.602499,33.097501 L0.3545,33.097501 z" Margin="7.306,0,7.303,0" Opacity="0.2" VerticalAlignment="Top" IsHitTestVisible="False" d:IsHidden="True" Visibility="Hidden"/>
    </Grid>
</UserControl>